using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.DBModel
{
	public partial class Sys_Role_Menu : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _PId;
		/// <summary>
		/// PId
		/// </summary>
		[Entity(ColumnName = CNPId)]
		public System.String PId
		{
			get { return _PId; }
			set
			{
				_PId = value;
				base.SetFieldChanged(CNPId) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _MenuId;
		/// <summary>
		/// MenuId
		/// </summary>
		[Entity(ColumnName = CNMenuId)]
		public System.String MenuId
		{
			get { return _MenuId; }
			set
			{
				_MenuId = value;
				base.SetFieldChanged(CNMenuId) ;
			}
		}

		private System.String _MenuCaption;
		/// <summary>
		/// MenuCaption
		/// </summary>
		[Entity(ColumnName = CNMenuCaption)]
		public System.String MenuCaption
		{
			get { return _MenuCaption; }
			set
			{
				_MenuCaption = value;
				base.SetFieldChanged(CNMenuCaption) ;
			}
		}

		private System.String _MenuName;
		/// <summary>
		/// MenuName
		/// </summary>
		[Entity(ColumnName = CNMenuName)]
		public System.String MenuName
		{
			get { return _MenuName; }
			set
			{
				_MenuName = value;
				base.SetFieldChanged(CNMenuName) ;
			}
		}

		private System.Boolean _IsMenuSplit;
		/// <summary>
		/// 菜单导航下一个是否为分隔符 -
		/// </summary>
		[Entity(ColumnName = CNIsMenuSplit, IsNotNull = true)]
		public System.Boolean IsMenuSplit
		{
			get { return _IsMenuSplit; }
			set
			{
				_IsMenuSplit = value;
				base.SetFieldChanged(CNIsMenuSplit) ;
			}
		}

		private System.String _ControlRights;
		/// <summary>
		/// 窗体控件权限
		/// </summary>
		[Entity(ColumnName = CNControlRights)]
		public System.String ControlRights
		{
			get { return _ControlRights; }
			set
			{
				_ControlRights = value;
				base.SetFieldChanged(CNControlRights) ;
			}
		}

		private System.Int32 _OrderNo;
		/// <summary>
		/// OrderNo
		/// </summary>
		[Entity(ColumnName = CNOrderNo, IsNotNull = true)]
		public System.Int32 OrderNo
		{
			get { return _OrderNo; }
			set
			{
				_OrderNo = value;
				base.SetFieldChanged(CNOrderNo) ;
			}
		}

		private System.Boolean _IsMenu;
		/// <summary>
		/// IsMenu
		/// </summary>
		[Entity(ColumnName = CNIsMenu, IsNotNull = true)]
		public System.Boolean IsMenu
		{
			get { return _IsMenu; }
			set
			{
				_IsMenu = value;
				base.SetFieldChanged(CNIsMenu) ;
			}
		}

		private System.Boolean _IsModalForm;
		/// <summary>
		/// IsModalForm
		/// </summary>
		[Entity(ColumnName = CNIsModalForm, IsNotNull = true)]
		public System.Boolean IsModalForm
		{
			get { return _IsModalForm; }
			set
			{
				_IsModalForm = value;
				base.SetFieldChanged(CNIsModalForm) ;
			}
		}

		private System.Boolean _ToolBarVisible;
		/// <summary>
		/// ToolBarVisible
		/// </summary>
		[Entity(ColumnName = CNToolBarVisible, IsNotNull = true)]
		public System.Boolean ToolBarVisible
		{
			get { return _ToolBarVisible; }
			set
			{
				_ToolBarVisible = value;
				base.SetFieldChanged(CNToolBarVisible) ;
			}
		}

		private System.String _ToolBarCaption;
		/// <summary>
		/// ToolBarCaption
		/// </summary>
		[Entity(ColumnName = CNToolBarCaption)]
		public System.String ToolBarCaption
		{
			get { return _ToolBarCaption; }
			set
			{
				_ToolBarCaption = value;
				base.SetFieldChanged(CNToolBarCaption) ;
			}
		}

		private System.String _ToolBarIcon;
		/// <summary>
		/// ToolBarIcon
		/// </summary>
		[Entity(ColumnName = CNToolBarIcon)]
		public System.String ToolBarIcon
		{
			get { return _ToolBarIcon; }
			set
			{
				_ToolBarIcon = value;
				base.SetFieldChanged(CNToolBarIcon) ;
			}
		}

		private System.Int32 _ToolBarOrderNo;
		/// <summary>
		/// ToolBarOrderNo
		/// </summary>
		[Entity(ColumnName = CNToolBarOrderNo, IsNotNull = true)]
		public System.Int32 ToolBarOrderNo
		{
			get { return _ToolBarOrderNo; }
			set
			{
				_ToolBarOrderNo = value;
				base.SetFieldChanged(CNToolBarOrderNo) ;
			}
		}

		private System.Boolean _ToolBarSplit;
		/// <summary>
		/// ToolBarSplit
		/// </summary>
		[Entity(ColumnName = CNToolBarSplit, IsNotNull = true)]
		public System.Boolean ToolBarSplit
		{
			get { return _ToolBarSplit; }
			set
			{
				_ToolBarSplit = value;
				base.SetFieldChanged(CNToolBarSplit) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(ColumnName = CNAddUserId)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				_AddUserId = value;
				base.SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(ColumnName = CNAddHost)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				_AddHost = value;
				base.SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(ColumnName = CNLastHost)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				_LastHost = value;
				base.SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(ColumnName = CNLastUserId)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				_LastUserId = value;
				base.SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNPId = "PId";
		public const string CNRoleId = "RoleId";
		public const string CNMenuId = "MenuId";
		public const string CNMenuCaption = "MenuCaption";
		public const string CNMenuName = "MenuName";
		public const string CNIsMenuSplit = "IsMenuSplit";
		public const string CNControlRights = "ControlRights";
		public const string CNOrderNo = "OrderNo";
		public const string CNIsMenu = "IsMenu";
		public const string CNIsModalForm = "IsModalForm";
		public const string CNToolBarVisible = "ToolBarVisible";
		public const string CNToolBarCaption = "ToolBarCaption";
		public const string CNToolBarIcon = "ToolBarIcon";
		public const string CNToolBarOrderNo = "ToolBarOrderNo";
		public const string CNToolBarSplit = "ToolBarSplit";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
